<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

        <title><?php echo $title;?></title>
        <?php $this->load->view('head');?>
        
    </head>
    <body>
        <div id="layout">
            <?php echo $this->load->view('logo');?>
            <div id="top">
                <?php echo $this->load->view('menu');?>
                <div class="clear"></div>
                <?php echo $this->load->view('botonera');?>
            </div><!-- End of #top -->
            <div id="container" class="container_12">
                <!-- ======= .grid_12 - block begin ======= -->
                <div class="grid_12">
                    <div class="box">
                        <div class="title"><div class="layout"><?php echo $title_table;?></div></div>						
                        <div class="inside">
                            <div class="in">
                                <div class="clear"></div>
                                <?php if($this->session->flashdata('mensaje_datos_generados') != ''){?>
                                    <div class="alert info_msg"><?php echo $this->session->flashdata('mensaje_datos_generados');?></div>
                                <?php }?>
                                <?php for($x = 0; $x < count($backups); $x++){?>
                                    <div class="grid-4-12">
                                        <a onclick="return confirm('<?php echo lang('confirm_restaurar_bbdd');?>')" class="button blue" href="<?php echo site_url('crud/admin/restaurar/'.$backups[$x]);?>">
                                            Restaurar backup
                                        </a>
                                        <a class="button red" href="<?php echo site_url('crud/admin/eliminar_backup/'.$backups[$x]);?>">
                                            Eliminar backup
                                        </a>
                                    </div>
                                    <div class="grid-8-12"><?php echo $backups[$x];?></div>
                                    <div class="clear"></div>
                                <?php }?>
                                <hr />

                                <div class="grid-10-12"></div>
                                <div class="grid-2-12"><a class="button green" href="<?php echo site_url('crud/admin/generar_backup');?>">Generar backup</a></div>
                                <div class="clear"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <!-- ======= .grid_12 - block end ======= -->
            </div><!-- End of #container -->
        </div><!-- End of #layout -->
        <div class="clear"></div>
        <?php $this->load->view('foot');?>	
    </body>
</html>